package com.iring.controller.admin;

import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.iring.controller.BaseController;
import com.iring.domain.common.CallLog;
import com.iring.vo.common.CallLogVO;

/**
 * 通话记录信息Controller
 *
 * @author wanggan
 */
@RestController
@RequestMapping(value = "/admin/calllog", produces = { "application/json;charset=UTF-8" })
public class CallLogController extends BaseController {

    /**
     * 根据时间获取通话记录
     *
     * @param callLogVO
     *            {@link CallLogVO}
     * @return 显示通话记录详情信息
     */
    @RequestMapping(value = "/list-calllog-page", method = RequestMethod.POST)
    public Page<CallLog> listCallLog(@RequestBody CallLogVO callLogVO) {

        return callLogService.listCallLog(callLogVO,getUserSession().getUsername());
    }

}
